/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.positionassets.entity;

import com.jeeplus.modules.subgoods.entity.SubGoods;
import com.jeeplus.modules.member.entity.Member;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 持仓资产Entity
 * @author w
 * @version 2021-03-26
 */
public class PositionAssets extends DataEntity<PositionAssets> {
	
	private static final long serialVersionUID = 1L;
	private SubGoods subGoods;		// 持仓商品
	private String goodsName;		// 商品名称
	private Double goodsPrice;		// 持仓时单价
	private Double totalPrice;		// 持仓时总金额
	private Integer goodsNum;		// 数量
	private Double nowPrice;		// 现单价
	private Double nowTotal;		// 现总金额
	private Member member;		// 用户
	private Date beginCreateDate;		// 开始 create_date
	private Date endCreateDate;		// 结束 create_date

	private Double upPrice;		//涨幅价格
	private Double upPercentage;		//涨幅百分比

	private String exportTime;//导出时间

	private Member manager;   //团队长

	private String isApply;   //是否申请发货

	private Integer applyNum;   //提货数量
	
	public PositionAssets() {
		super();
	}

	public PositionAssets(String id){
		super(id);
	}

	@ExcelField(title="持仓商品", fieldType=SubGoods.class, value="subGoods.goodsName", align=2, sort=1)
	public SubGoods getSubGoods() {
		return subGoods;
	}

	public void setSubGoods(SubGoods subGoods) {
		this.subGoods = subGoods;
	}
	
	@ExcelField(title="商品名称", align=2, sort=2)
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	
	@ExcelField(title="持仓时单价", align=2, sort=3)
	public Double getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(Double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	
	@ExcelField(title="持仓时总金额", align=2, sort=4)
	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	
	@ExcelField(title="数量", align=2, sort=5)
	public synchronized Integer getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}
	
	@ExcelField(title="现单价", align=2, sort=6)
	public Double getNowPrice() {
		return nowPrice;
	}

	public void setNowPrice(Double nowPrice) {
		this.nowPrice = nowPrice;
	}
	
	@ExcelField(title="现总金额", align=2, sort=7)
	public Double getNowTotal() {
		return nowTotal;
	}

	public void setNowTotal(Double nowTotal) {
		this.nowTotal = nowTotal;
	}
	
	@ExcelField(title="用户", fieldType=Member.class, value="member.loginName", align=2, sort=8)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}

	public Double getUpPrice() {
		return upPrice;
	}

	public void setUpPrice(Double upPrice) {
		this.upPrice = upPrice;
	}

	public Double getUpPercentage() {
		return upPercentage;
	}

	public void setUpPercentage(Double upPercentage) {
		this.upPercentage = upPercentage;
	}

	@ExcelField(title="更新时间", align=2, sort=7)
	public String getExportTime() {
		return exportTime;
	}

	public void setExportTime(String exportTime) {
		this.exportTime = exportTime;
	}

	public Member getManager() {
		return manager;
	}

	public void setManager(Member manager) {
		this.manager = manager;
	}

	@ExcelField(title="是否全部提货", dictType="yes_no", align=2, sort=8)
	public String getIsApply() {
		return isApply;
	}

	public void setIsApply(String isApply) {
		this.isApply = isApply;
	}

	@ExcelField(title = "提货数量", align = 2, sort = 9)
	public Integer getApplyNum() {
		return applyNum;
	}

	public void setApplyNum(Integer applyNum) {
		this.applyNum = applyNum;
	}
}